<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>OHC Login 指令文档</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
            min-height: 100vh;
            padding: 40px 20px;
            color: #2c3e50;
        }
        
        .container {
            max-width: 900px;
            margin: 0 auto;
        }
        
        h1 {
            text-align: center;
            color: #1a5fb4;
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .subtitle {
            text-align: center;
            color: #5c7a99;
            margin-bottom: 40px;
            font-size: 1.1rem;
        }
        
        .section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(26, 95, 180, 0.1);
            margin-bottom: 24px;
            overflow: hidden;
        }
        
        .section-header {
            background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
            color: white;
            padding: 16px 24px;
            font-size: 1.25rem;
            font-weight: 600;
        }
        
        .section-content {
            padding: 0;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th {
            background: #e8f0fc;
            color: #1a5fb4;
            text-align: left;
            padding: 14px 20px;
            font-weight: 600;
            border-bottom: 2px solid #c5d9f1;
        }
        
        td {
            padding: 14px 20px;
            border-bottom: 1px solid #e8f0fc;
        }
        
        tr:last-child td {
            border-bottom: none;
        }
        
        tr:hover {
            background: #f8fafd;
        }
        
        .command {
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
            background: #e8f4fd;
            color: #1a5fb4;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        
        .param {
            color: #3584e4;
        }
        
        .optional {
            color: #7c9fc9;
        }
        
        .description {
            color: #4a5568;
            line-height: 1.5;
        }
        
        .info-box {
            background: #e8f4fd;
            border-left: 4px solid #1a5fb4;
            padding: 16px 20px;
            margin: 20px;
            border-radius: 0 8px 8px 0;
        }
        
        .info-box h4 {
            color: #1a5fb4;
            margin-bottom: 8px;
        }
        
        .info-box ul {
            margin-left: 20px;
            color: #4a5568;
        }
        
        .info-box li {
            margin: 6px 0;
            line-height: 1.5;
        }
        
        .footer {
            text-align: center;
            color: #7c9fc9;
            margin-top: 40px;
            font-size: 0.9rem;
        }
        
        .badge {
            display: inline-block;
            background: #3584e4;
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            margin-left: 8px;
            vertical-align: middle;
        }
        
        .badge.admin {
            background: #e66100;
        }
        
        .badge.auto {
            background: #26a269;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>OHC Login</h1>
        
        <!-- 玩家命令 -->
        <div class="section">
            <div class="section-header">👤 玩家命令</div>
            <div class="section-content">
                <table>
                    <thead>
                        <tr>
                            <th style="width: 40%">命令</th>
                            <th>说明</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><code class="command">/bind <span class="param">&lt;账号&gt;</span> <span class="param">&lt;密码&gt;</span></code></td>
                            <td class="description">首次登录时绑定 OTTOHub 账号</td>
                        </tr>
                        <tr>
                            <td><code class="command">/l <span class="param">&lt;密码&gt;</span></code></td>
                            <td class="description">已绑定玩家登录</td>
                        </tr>
                        <tr>
                            <td><code class="command">/unbind <span class="param">&lt;密码&gt;</span></code></td>
                            <td class="description">解除自己的账号绑定</td>
                        </tr>
                        <tr>
                            <td><code class="command">/r <span class="param">&lt;密码&gt;</span></code></td>
                            <td class="description">创建备用密码（API 不可用时使用）</td>
                        </tr>
                        <tr>
                            <td><code class="command">/dl <span class="param">&lt;密码&gt;</span></code></td>
                            <td class="description">使用备用密码登录</td>
                        </tr>
                        <tr>
                            <td><code class="command">/up <span class="param">&lt;当前密码&gt;</span> <span class="param">&lt;新密码&gt;</span></code></td>
                            <td class="description">修改自己的备用密码</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        
        <!-- 玩家管理 -->
        <div class="section">
            <div class="section-header">🛡️ 玩家管理 <span class="badge admin">管理员</span></div>
            <div class="section-content">
                <table>
                    <thead>
                        <tr>
                            <th style="width: 45%">命令</th>
                            <th>说明</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><code class="command">/unbindplayer <span class="param">&lt;玩家名&gt;</span></code></td>
                            <td class="description">解除指定玩家的账号绑定</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohlogin <span class="param">&lt;玩家名&gt;</span></code></td>
                            <td class="description">让指定玩家直接登录（跳过验证）</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohbind <span class="param">&lt;UID或玩家名&gt;</span></code></td>
                            <td class="description">查询绑定信息</td>
                        </tr>
                        <tr>
                            <td><code class="command">/dup <span class="param">&lt;玩家名&gt;</span> <span class="optional">[密码]</span></code></td>
                            <td class="description">设置/删除玩家的备用密码</td>
                        </tr>
                        <tr>
                            <td><code class="command">/where <span class="param">&lt;玩家名&gt;</span></code></td>
                            <td class="description">查询玩家位置</td>
                        </tr>
                        <tr>
                            <td><code class="command">/where <span class="param">&lt;玩家名&gt;</span> all</code></td>
                            <td class="description">全服广播玩家位置</td>
                        </tr>
                        <tr>
                            <td><code class="command">/where <span class="param">&lt;玩家名&gt;</span> see</code></td>
                            <td class="description">持续追踪玩家位置</td>
                        </tr>
                        <tr>
                            <td><code class="command">/where <span class="param">&lt;玩家名&gt;</span> stop</code></td>
                            <td class="description">停止追踪</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        
        <!-- 封禁管理 -->
        <div class="section">
            <div class="section-header">🚫 封禁管理 <span class="badge admin">管理员</span></div>
            <div class="section-content">
                <table>
                    <thead>
                        <tr>
                            <th style="width: 50%">命令</th>
                            <th>说明</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><code class="command">/ohban list</code></td>
                            <td class="description">查看封禁列表（UID 封禁 + 密码错误封禁）</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohban <span class="param">&lt;UID&gt;</span></code></td>
                            <td class="description">永久封禁指定 UID</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohban <span class="param">&lt;UID&gt;</span> <span class="param">&lt;原因&gt;</span></code></td>
                            <td class="description">永久封禁并注明原因</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohban <span class="param">&lt;UID&gt;</span> <span class="param">&lt;原因&gt;</span> <span class="param">&lt;时间&gt;</span></code></td>
                            <td class="description">封禁指定时长（小时）</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohunban <span class="param">&lt;UID或玩家名&gt;</span></code></td>
                            <td class="description">解除封禁</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        
        <!-- 欢迎词管理 -->
        <div class="section">
            <div class="section-header">💬 欢迎词管理 <span class="badge admin">管理员</span></div>
            <div class="section-content">
                <table>
                    <thead>
                        <tr>
                            <th style="width: 50%">命令</th>
                            <th>说明</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><code class="command">/ohwel list</code></td>
                            <td class="description">查看欢迎词列表</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohwel <span class="param">&lt;UID&gt;</span> <span class="param">&lt;消息&gt;</span></code></td>
                            <td class="description">设置指定 UID 的欢迎词（支持 <code>{player}</code> 占位符）</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohwel del <span class="param">&lt;UID&gt;</span></code></td>
                            <td class="description">删除指定 UID 的欢迎词</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        
        <!-- 存档命令 -->
        <div class="section">
            <div class="section-header">💾 存档与回档 <span class="badge admin">管理员</span></div>
            <div class="section-content">
                <table>
                    <thead>
                        <tr>
                            <th style="width: 50%">命令</th>
                            <th>说明</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><code class="command">/ohcsave <span class="param">&lt;存档名&gt;</span></code></td>
                            <td class="description">创建服务器存档</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcres</code></td>
                            <td class="description">查看所有存档列表</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcres <span class="param">&lt;存档名&gt;</span></code></td>
                            <td class="description">回档到指定存档（全部世界）</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcres <span class="param">&lt;存档名&gt;</span> overworld</code></td>
                            <td class="description">只回档主世界</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcres <span class="param">&lt;存档名&gt;</span> nether</code></td>
                            <td class="description">只回档下界</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcres <span class="param">&lt;存档名&gt;</span> end</code></td>
                            <td class="description">只回档末地</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcdel <span class="param">&lt;存档名&gt;</span></code></td>
                            <td class="description">删除指定存档</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcback</code></td>
                            <td class="description">查看有存档权限的玩家列表</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcback <span class="param">&lt;玩家名&gt;</span></code></td>
                            <td class="description">授予玩家存档权限</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcback del <span class="param">&lt;玩家名&gt;</span></code></td>
                            <td class="description">撤销玩家存档权限</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcauto</code></td>
                            <td class="description">查看自动存档设置</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcauto on</code></td>
                            <td class="description">开启自动存档</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcauto off</code></td>
                            <td class="description">关闭自动存档</td>
                        </tr>
                        <tr>
                            <td><code class="command">/ohcauto <span class="param">&lt;时&gt;</span> <span class="param">&lt;分&gt;</span></code></td>
                            <td class="description">设置自动存档时间（如 <code>/ohcauto 4 30</code>）</td>
                        </tr>
                    </tbody>
                </table>
                
                <div class="info-box">
                    <h4>📌 存档说明</h4>
                    <ul>
                        <li>存档保存在服务器目录的 <code>ohc_backups/</code> 文件夹</li>
                        <li>支持模糊匹配存档名（无需输入完整名称）</li>
                    </ul>
                </div>
            </div>
        </div>
        
    </div>
</body>
</html>
